package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitGoodsOrderRouter(Router *gin.RouterGroup) {
	GoodsOrderRouter := Router.Group("goodsOrder").Use(middleware.OperationRecord())
	{
		GoodsOrderRouter.POST("createGoodsOrder", v1.CreateGoodsOrder)   // 新建GoodsOrder
		GoodsOrderRouter.DELETE("deleteGoodsOrder", v1.DeleteGoodsOrder) // 删除GoodsOrder
		GoodsOrderRouter.DELETE("deleteGoodsOrderByIds", v1.DeleteGoodsOrderByIds) // 批量删除GoodsOrder
		GoodsOrderRouter.PUT("updateGoodsOrder", v1.UpdateGoodsOrder)    // 更新GoodsOrder
		GoodsOrderRouter.GET("findGoodsOrder", v1.FindGoodsOrder)        // 根据ID获取GoodsOrder
		GoodsOrderRouter.GET("getGoodsOrderList", v1.GetGoodsOrderList)  // 获取GoodsOrder列表
		GoodsOrderRouter.GET("getDeliveryGoodsOrderList", v1.GetDeliveryGoodsOrderList)  // 获取GoodsOrder列表
		GoodsOrderRouter.GET("getGoodsOrderById", v1.GetGoodsOrderById)  // 获取GoodsOrder列表
		GoodsOrderRouter.GET("createRelateBill", v1.CreateRelateBill)  // 获取GoodsOrder列表
		GoodsOrderRouter.GET("setStateStorage", v1.SetStateStorage)    // 设置进货单已入库状态
	}
}
